package com.wangx1n.boobey.controller;

import com.wangx1n.boobey.entity.User;
import com.wangx1n.boobey.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangxin
 * @create 2020-06-13 0:14
 */
@RestController
public class UserController {
    @Autowired
    UserService userService;
    /**
     * 用户登录
     * @return
     */
    @RequestMapping(value = "/login",method = RequestMethod.POST)
    public String UserLogin(User user,String code){
        return userService.Login(user, code);
    }
}
